{ //=========Macro generated from canvas: c1/Efficiencies //========= (Sat Mar 28 21:21:15 2009) by ROOT version5.22/00 TCanvas *c1 = new TCanvas("c1", "Efficiencies",0,44,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-1.375,-13.75,2.375,123.75); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1 *hlptghc = new TH1F("hlptghc","pt, pair bg tracks/ghosts w. SIT/TPC hit",10,-1,0.2); hlptghc->SetBinContent(3,2); hlptghc->SetBinContent(4,12); hlptghc->SetBinContent(5,21); hlptghc->SetBinContent(6,23); hlptghc->SetBinContent(7,35); hlptghc->SetBinContent(8,18); hlptghc->SetBinContent(9,2); hlptghc->SetBinContent(10,1); hlptghc->SetBinContent(11,5); hlptghc->SetBinError(3,1.414214); hlptghc->SetBinError(4,3.464102); hlptghc->SetBinError(5,4.582576); hlptghc->SetBinError(6,4.795832); hlptghc->SetBinError(7,5.91608); hlptghc->SetBinError(8,4.242641); hlptghc->SetBinError(9,1.414214); hlptghc->SetBinError(10,1); hlptghc->SetBinError(11,2.236068); hlptghc->SetEntries(119); hlptghc->Scale(0.01); hlptghc->GetXaxis()->SetTitle("log_{10}(p_{T}/GeV)"); hlptghc->GetYaxis()->SetTitle("Background Tracks/Event"); hlptghc->GetYaxis()->SetNdivisions(503); hlptghc->SetMaximum(0.3); hlptghc->SetMinimum(0.0); hlptghc->Draw("pe"); TLatex * tex = new TLatex(-0.9,0.27,"b)"); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLatex * tex = new TLatex(-0.9,0.23,"Tagged BX"); tex->SetTextSize(0.055); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("Ghost_Pt_Cut.eps" ); c1->SaveAs("Ghost_Pt_Cut.gif" ); }